/**
 * 上午10:05:45
 */
package com.hsnn.medstgmini.sys.model;

/**
 * @author hsnn
 *
 */
public enum SysRoleType {
	zx(1, "47bc7085-cc7a-4274-ab26-e5721953c905"), sc(2, "0dac23f1-e782-4bbb-9336-294064f73519"), ps(3, "aee967be-e8da-4a3b-aefe-9fc8a2c849e3"), yy(4, "4efe5566-0a64-476b-a153-f307225cf0ea"), zj(5, "3ee7d19d-496f-4aed-aea8-066bf5c1747d"), hszx(6, "4f9916c8-6c6f-479a-b966-5e9a2b63c053"),
	cgy(7,"3a62b0ec-9ef8-11e5-aadd-00ff61ef341e"),shy(8,"29e6c26d-9ef8-11e5-aadd-00ff61ef341e");
	private int key;
	private String value;
	
	private SysRoleType(int key, String value) {
		this.key = key;
		this.value = value;
	}
	
	public static String getName(int key) {
		for (SysRoleType srt : SysRoleType.values()) {
			if (srt.key == key) {
				return srt.value;
			}
		}
		return "";
	}

	public static SysRoleType getSysRoleType(int key) {
		for (SysRoleType srt : SysRoleType.values()) {
			if (srt.key == key) {
				return srt;
			}
		}
		return null;
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
	public static void main(String[] args) {
		SysRoleType ss = SysRoleType.getSysRoleType(1);
		System.out.println(ss.getValue());
	}
}
